array manipulation hackerrank problem

join shbcf.ru